/*
 * GameView.hpp
 *
 *  Created on: 27/dic/2012
 *      Author: stefano.pesenti
 */

#ifndef GAMEVIEW_HPP_
#define GAMEVIEW_HPP_

#include "GameModel.hpp"

class GameView {
private:
	zen::math::Motion camera;
	GameModel* model;

public:
	GameView() :
			model(0) {
	}
	int initialize(GameModel* const);
	int update();
	int draw();

	inline zen::math::Motion& getCamera() { return camera; }
};

int GameView::initialize(GameModel* const model) {
	this->model = model;
	return 0;
}

int GameView::update() {
	return 0;
}

int GameView::draw() {
	this->model->drawTerrain(camera.position());
	return 0;
}

#endif /* GAMEVIEW_HPP_ */
